Passed
Push — master ( db8b6d...8ae6ad )
by Lucas
02:30
created

run.js ➔ execJasmine   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
/* global window, jasmine */
2
/* eslint strict: 0 */
3
(function () {
4
  var jasmineEnv = jasmine.getEnv();
5
  jasmineEnv.updateInterval = 1000;
6
7
  var trivialReporter = new jasmine.TrivialReporter();
8
9
  jasmineEnv.addReporter(trivialReporter);
10
11
  jasmineEnv.specFilter = function (spec) {
12
    return trivialReporter.specFilter(spec);
13
  };
14
15
  var currentWindowOnload = window.onload;
16
  var execJasmine = function () {
17
    jasmineEnv.execute();
18
  };
19
  window.onload = function () {
20
    if (currentWindowOnload) {
21
      currentWindowOnload();
22
    }
23
    execJasmine();
24
  };
25
}());
26